package com.piggy.logi.sys.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@ApiModel("待发车运单分页视图")
@Accessors(chain = true)
public class OperationDispatchPageVo {

    /** $column.columnComment */
    @ApiModelProperty("运单id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long sourceOrderId;

    @ApiModelProperty("运单编号")
    private String outCode;

    @ApiModelProperty("货物名称")
    private String orderType;

    @ApiModelProperty("货物名称")
    private String goodName;

    @ApiModelProperty("数量")
    private String num;

    @ApiModelProperty("重量")
    private String weight;

    @ApiModelProperty("体积")
    private String bulk;

    @ApiModelProperty("发货地址县区ID")
    private Integer originDistrictId;

    @ApiModelProperty("发货地址县区名称")
    private String originDistrictName;

    @ApiModelProperty("收货地址县区ID")
    private Integer destinationDistrictId;

    @ApiModelProperty("收货地址县区名称")
    private String destinationDistrictName;

    @ApiModelProperty("发货方")
    private String shipName;

    @ApiModelProperty("收货方")
    private String deliveryName;

    @ApiModelProperty("计划发货时间")
    @JsonFormat(pattern = "yyyy.MM.dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy.MM.dd")
    private Date departureTime;

    @ApiModelProperty("发货网点")
    private String shipNetName;

    @ApiModelProperty("紧急程度")
    private Integer urgencyDegree;

    @ApiModelProperty("状态")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Integer status;

    @ApiModelProperty("调度车辆")
    private String dispatchCar;

    @ApiModelProperty("调度编号")
    private String dispatchNo;

    @ApiModelProperty("调度编号")
    private String dispatchDriver;
}
